Skip to content

DEPR: Deprecate core #31377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

DEPR: Deprecate core #31377

wants to merge 4 commits into from

Conversation

lithomas1
Copy link
Member

@lithomas1 lithomas1 commented Jan 28, 2020

  • closes DEPR: pandas/core #27522
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

I haven't actually performed the refactor(pandas.core -> pandas._core) yet so tests are failing because of the warnings.

warnings.warn(
"The pandas.core module is private and access "
"will be moved to pandas._core in a future version. "
f"You should import directly from the pandas namespace instead",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this f-string do?

@TomAugspurger
Copy link
Contributor

I think I'd prefer doing this as a DeprecationWarning before elevating to a FutureWarning.

That will give downstream libraries a chance to report the pieces of functionality they need from pandas.core a chance to report and fix the warnings before their users see it.

@simonjayhawkins simonjayhawkins added the Deprecate Functionality to remove in pandas label Jan 28, 2020
@lithomas1 lithomas1 closed this Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: pandas/core
4 participants